//
//  RBBaseNavController.m
//  TableTennis
//
//  Created by Riber on 27/7/18.
//  Copyright © 2018年 Riber. All rights reserved.
//

#import "RBBaseNavController.h"

@interface RBBaseNavController () <UIGestureRecognizerDelegate>

@end

@implementation RBBaseNavController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.interactivePopGestureRecognizer.delegate = self;
}

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
    if (self.viewControllers.count <= 1 ) {
        return NO;
    }
    return YES;
}

@end
